package com.bjut.vendormgrsys.web.dto.other;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;

/**
 * CompanyInfo
 */
@Validated


public class CompanyInfo   {
  @JsonProperty("content")
  private Object content = null;

  @JsonProperty("lastUpdate")
  private Long lastUpdate = null;

  public CompanyInfo content(Object content) {
    this.content = content;
    return this;
  }

  /**
   * Get content
   * @return content
   **/
  @Schema(description = "")
  
    public Object getContent() {
    return content;
  }

  public void setContent(Object content) {
    this.content = content;
  }

  public CompanyInfo lastUpdate(Long lastUpdate) {
    this.lastUpdate = lastUpdate;
    return this;
  }

  /**
   * Get lastUpdate
   * @return lastUpdate
   **/
  @Schema(description = "")
  
    public Long getLastUpdate() {
    return lastUpdate;
  }

  public void setLastUpdate(Long lastUpdate) {
    this.lastUpdate = lastUpdate;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CompanyInfo companyInfo = (CompanyInfo) o;
    return Objects.equals(this.content, companyInfo.content) &&
        Objects.equals(this.lastUpdate, companyInfo.lastUpdate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(content, lastUpdate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CompanyInfo {\n");
    
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
    sb.append("    lastUpdate: ").append(toIndentedString(lastUpdate)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}
